package top.psjj.news.po;

/**
 * @Auther:小陈的Java
 */

import java.sql.Timestamp;
import java.util.Date;

/**
 * 评论表;
 * @author : http://www.chiner.pro
 * @date : 2022-6-7
 */

public class TComment{
    /** 主键 */
    private Integer id ;
    /** 新闻id */
    private Integer newsId ;
    /** 评论内容 */
    private String content ;
    /** 用户ip */
    private String userip ;
    /** 评论日期 */
    private Timestamp commentDate ;

    private TNews news;

    public TNews getNews() {
        return news;
    }

    public void setNews(TNews news) {
        this.news = news;
    }

    /** 主键 */
    public Integer getId(){
        return this.id;
    }
    /** 主键 */
    public void setId(Integer id){
        this.id=id;
    }
    /** 新闻id */
    public Integer getNewsId(){
        return this.newsId;
    }
    /** 新闻id */
    public void setNewsId(Integer newsId){
        this.newsId=newsId;
    }
    /** 评论内容 */
    public String getContent(){
        return this.content;
    }
    /** 评论内容 */
    public void setContent(String content){
        this.content=content;
    }
    /** 用户ip */
    public String getUserip(){
        return this.userip;
    }
    /** 用户ip */
    public void setUserip(String userip){
        this.userip=userip;
    }
    /** 评论日期 */
    public Date getCommentDate(){
        return this.commentDate;
    }
    /** 评论日期 */
    public void setCommentDate(Timestamp commentDate){
        this.commentDate=commentDate;
    }

    @Override
    public String toString() {
        return "TComment{" +
                "id=" + id +
                ", newsId=" + newsId +
                ", content='" + content + '\'' +
                ", userip='" + userip + '\'' +
                ", commentDate=" + commentDate +
                '}';
    }
}
